home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / pyshared / epsilon / iepsilon.py < prev    next >
Text File  |  2009-03-13  |  811b  |  26 lines

  1. # Copyright (c) 2008 Divmod.  See LICENSE for details.
  2.  
  3. """
  4. Epsilon interfaces.
  5. """
  6. from zope.interface import Attribute
  7.  
  8. from twisted.cred.credentials import ICredentials
  9.  
  10.  
  11. class IOneTimePad(ICredentials):
  12.     """
  13.     A type of opaque credential for authenticating users, which can be used
  14.     only a single time.
  15.  
  16.     This interface should also be responsible for authenticating.  See #2784.
  17.     """
  18.     padValue = Attribute(
  19.         """
  20.         C{str} giving the value of the one-time pad.  The value will be
  21.         compared by a L{twisted.cred.checkers.ICredentialsChecker} (e.g.
  22.         L{epsilon.ampauth.OneTimePadChecker}) against all valid one-time pads.
  23.         If there is a match, login will be successful and the pad will be
  24.         invalidated (further attempts to use it will fail).
  25.         """)
  26.